import Vue from 'vue'
import VueRouter from 'vue-router'
let Home = () => import('../components/Home.vue')
let Hot = () => import('../components/Hot.vue')
let News = () => import('../components/News.vue')
Vue.use(VueRouter)
let routes = [
  {
    path: '/home',
    name: 'home',
    component: Home
  },
  {
    path: '/hot',
    name: 'hot',
    component: Hot
  },
  {
    path: '/news',
    name: 'news',
    component: News
  }
]

let router = new VueRouter({ routes })
export default router
